<template>
 <div class="wrapper">
        <header>
            <i class="fa fa-angle-left" onclick="history.go(-1)"></i>
            <p>体检预约成功</p>
            <div></div>
        </header>
        <div class="top-ban"></div>

        <section>
            <div class="success">
                <div class="icon-box">
                    <div class="icon">
                        <i class="fa fa-check"></i>
                    </div>
                </div>
                <h1>恭喜预约成功！</h1>
                <p>请体检用户携带本人身份证到店认证</p>
            </div>
            <div class="order-btn" @click="toAppointmentList">查看订单</div>
            <div class="continue" @click="toAppointment">继续为家人预约</div>
            <div class="info">
                <p>您的信息已发送至体检机构</p>
                <p>预约成功后会发送短信至您的手机</p>
                <p>客服电话:<span>4008-XXX-XXX</span></p>
            </div>

        </section>

        <div class="bottom-ban"></div>

<footer>

</footer>

    </div>
</template>

<script>
import Footer from "../components/Footer.vue";
import { useRouter } from "vue-router";




export default {
  setup() {
    const router = useRouter();

    function toAppointmentList(){
        router.push('/appointmentList');

    }

    function toAppointment(){
        router.push('/appointment');

    }
 
   return {
    toAppointmentList,
    toAppointment

    };
  },
  components: { Footer },
};
</script>

<style scoped>
/* 总容器样式 */

.wrapper {
    width: 100%;
    height: 100%;
    background-color: #f9f9f9;
}


/* 头部 */

header {
    width: 100%;
    height: 15.7vw;
    background-color: white;
    position: fixed;
    left: 0;
    top: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-sizing: border-box;
    padding: 0 3.6vw;
}

header .fa {
    font-size: 8vw;
}


/* 底部导航栏 */




/* 头部挡板 */

.top-ban {
    width: 100%;
    height: 15.7vw;
}

.bottom-ban {
    width: 100%;
    height: 14.2vw;
}


/* section */

section {
    width: 100%;
}

section .success {
    width: 100%;
    height: 62vw;
    border-bottom: solid 1px #eee;
    background-color: #fff;
}

section .success .icon-box {
    width: 100%;
    height: 30vw;
    background-image: linear-gradient(135deg, #01c7a4, #02a6c9, #02a6c9);
    position: relative;
}

section .success .icon-box .icon {
    width: 16vw;
    height: 16vw;
    border-radius: 8vw;
    background-color: white;
    position: absolute;
    left: 42vw;
    bottom: -8vw;
    font-size: 8vw;
    color: #02a6c9;
    text-align: center;
    line-height: 16vw;
}

section .success h1 {
    text-align: center;
    font-size: 5.2vw;
    font-weight: 500;
    color: #02a6c9;
    margin-top: 10vw;
}

section .success p {
    text-align: center;
    font-size: 3.4vw;
    color: #555;
    margin-top: 3vw;
}

section .order-btn {
    width: 100%;
    height: 14vw;
    text-align: center;
    line-height: 14vw;
    font-size: 4vw;
    color: #02a6c9;
    background-color: white;
    user-select: none;
    cursor: pointer;
}

section .continue {
    width: 88vw;
    height: 13vw;
    margin: 0 auto;
    background-image: linear-gradient(135deg, #02a6c9, #02a6c9, #01c7a4);
    border-radius: 1vw;
    text-align: center;
    line-height: 13vw;
    margin-top: 5vw;
    font-size: 4vw;
    color: white;
    user-select: none;
    cursor: pointer;
}

section .info {
    width: 100%;
    margin-top: 16vw;
}

section .info p {
    text-align: center;
    font-size: 3.2vw;
    color: #999;
    margin-top: 1vw;
}

section .info p span {
    font-size: 3.6vw;
    color: #555;
    margin-left: 1vw;
}
</style>